<template>
	<view class="header-recharge">
		<image class="arrow" src="/static/recharge/arrow.png" mode="" @tap="backFirst"></image>
		<text v-if="types == '1'">充值</text>
		<text v-else>提现</text>
		<image class="service" src="/static/recharge/service.png" mode=""></image>
	</view>
</template>
<script>
	export default {
		data(){
			return {
			}
		},
		props: {
			types: {
				type: String
			}
		},
		methods: {
			// 返回到首页
			backFirst(e){
				setTimeout(function() {
					uni.switchTab({
						url: '/pages/index/index'
					});
				}, 1)
			}
		}
	}
</script>
<style lang="scss">
	.header-recharge{
		padding: 10rpx 40rpx;
		display: flex;
		font-size: 30rpx;
		font-weight: bold;
		align-items: center;
		background-color: #FFFFFF;
		justify-content: space-between;
		.arrow, .service{
			height: 40rpx;
			width: 50rpx;
		}
		.arrow{
			transform: rotate(180deg);
		}
	}
</style>
